function takeLongTime() {
    return new Promise(resolve => {
        setTimeout(()=>resolve("long_time_value"),1000);
    });
}

async function test() {
    const  v=await takeLongTime();
    //1秒之后才会显示这句话
    console.log(v);
}
test();